package com.jhx.video.cutvideo

import android.os.Bundle
import com.jhx.common.framework.QuickBaseActivity
import com.jhx.video.R
import com.jhx.video.utils.TCConstants
import com.tencent.ugc.TXRecordCommon

/**
 * 裁剪视频页面
 *
 * @author Jack 2018-03-17 16:08
 */
class CutVideoActivity : QuickBaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_home)
        val bundle = Bundle()
        bundle.putInt(TCConstants.VIDEO_RECORD_RESOLUTION,
                intent.getIntExtra(TCConstants.VIDEO_RECORD_RESOLUTION, TXRecordCommon.VIDEO_QUALITY_HIGH))
        bundle.putString(TCConstants.VIDEO_EDITER_PATH,
                intent.getStringExtra(TCConstants.VIDEO_EDITER_PATH))
        bundle.putString(TCConstants.VIDEO_RECORD_COVERPATH, intent.getStringExtra(TCConstants.VIDEO_RECORD_COVERPATH))
        push(CutVideoFragment::class.java, bundle)
    }

    override fun containerId(): Int {
        return R.id.view_container
    }

    override fun showToolbar(): Boolean {
        return false
    }
}